import {request,get,post} from '@/utils/request.js';

export const getNoteTypes =(data)=>{
	return get('/noteType/list',
		data
	)
}
/**
 * 添加分类
 */
export const saveNoteType =(name)=>{
	return post('/noteType/save',
		{
			name
		}
	)
}
/**
 * 删除到回收站
 */
export const recycleNoteType =(id)=>{
	return get('/noteType/recycle',
		{
			id
		}
	)
}

/**
 * 修改分类
 */
export const updateNoteType =(id,name)=>{
	return post('/noteType/update',
		{
			id,
			name
		}
	)
}